package org.darkforest.model;

import org.darkforest.common.util.Page;

import java.math.BigDecimal;
import java.util.ArrayList;

public class PBundling extends Page<PBundling> {
    private Integer blId;

    private String blName;

    private Integer storeId;

    private String storeName;

    private BigDecimal blDiscountPrice;

    private Boolean blFreightChoose;

    private BigDecimal blFreight;

    private Integer blState;

    private Integer goodsId; //查询条件

    private String goodsIds; //


    public String getGoodsIds() {
        return goodsIds;
    }

    public void setGoodsIds(String goodsIds) {
        this.goodsIds = goodsIds;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    private ArrayList<PBundlingGoods> pBundlingGoodsList;

    public PBundling(){}

    public PBundling(Integer storeId,Boolean pageSwitch){
        this.storeId = storeId;
        super.setPageSwitch(pageSwitch);
    }

    public PBundling(Integer storeId,Boolean pageSwitch,Integer goodsId){
        this.storeId = storeId;
        this.goodsId = goodsId;
        super.setPageSwitch(pageSwitch);
    }


    public ArrayList<PBundlingGoods> getpBundlingGoodsList() {
        return pBundlingGoodsList;
    }

    public void setpBundlingGoodsList(ArrayList<PBundlingGoods> pBundlingGoodsList) {
        this.pBundlingGoodsList = pBundlingGoodsList;
    }

    public Integer getBlId() {
        return blId;
    }

    public void setBlId(Integer blId) {
        this.blId = blId;
    }

    public String getBlName() {
        return blName;
    }

    public void setBlName(String blName) {
        this.blName = blName == null ? null : blName.trim();
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName == null ? null : storeName.trim();
    }

    public BigDecimal getBlDiscountPrice() {
        return blDiscountPrice;
    }

    public void setBlDiscountPrice(BigDecimal blDiscountPrice) {
        this.blDiscountPrice = blDiscountPrice;
    }

    public Boolean getBlFreightChoose() {
        return blFreightChoose;
    }

    public void setBlFreightChoose(Boolean blFreightChoose) {
        this.blFreightChoose = blFreightChoose;
    }

    public BigDecimal getBlFreight() {
        return blFreight;
    }

    public void setBlFreight(BigDecimal blFreight) {
        this.blFreight = blFreight;
    }

    public Integer getBlState() {
        return blState;
    }

    public void setBlState(Integer blState) {
        this.blState = blState;
    }

    public String getStateDes(){
        switch (this.blState){
            case 0 : return  "关闭";
            case 1 : return  "开启";
            default: return  "未知状态";
        }
    }
}